<%@ page language="java"  pageEncoding="UTF-8"%>
<jsp:include page="../../inc.jsp"></jsp:include>
<jsp:include page="../../kindeditorInc.jsp"></jsp:include>
<jsp:include page="../../uploadifyInc.jsp"></jsp:include>

<script charset="utf-8" type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jsp/user/store/list.js"></script>
<!-- content -->
<div class="easyui-layout" data-options="fit:true,border:false">
	<!-- 查询面板 -->
	<div class="tableSearch datagrid-toolbar" data-options="region:'north',border:false" style="width:100%;height:35px;;overflow: hidden;font-size: 12px;">
		<form id="selectForm">
		<input type="hidden" id="userid" name="userid"  value='${userid}'/> 
			<%-- <input type="hidden" id="listBugType" name="listBugType" value='${listBugType}'> --%>
			<table  style="width: 100%; font-size: 12px">
				<tr>
					<th>创建时间</th>
					<td>
						<input id="createDate1" name="createDate1" style="width: 100px;"/>至
						<input id="createDate2" name="createDate2" style="width: 100px;"/>
					</td>
					<th>名称</th><td><input class="input_border" name="checkName" id="checkName" style="width: 100px;"/></td>
					<th>类型</th><td><input class="input_border" name="checkStatus" id="checkStatus" style="width: 100px;"/></td>
					<td align="center">
						<a href="javascript:void(0)" class="easyui-linkbutton" onclick="search_datas()">查询</a>
						<a href="javascript:void(0)" class="easyui-linkbutton" onclick="reset_datas()">清空</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<!-- 数据表格 -->
	<div data-options="region:'center',border:false">
		<table id="_datasDatagrid"></table>
	</div>
</div>

<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false">
		<table id="_treeDatagrid"></table>	
	</div>
</div>

<!-- 右键菜单 -->
<div>
	<div id="datagridContextMenu" class="easyui-menu" style="width:300px">
		<div data-options="iconCls:'icon-remove'" onclick="deleteRow()">批量删除</div>
		<div class="menu-sep"></div> 
		<div data-options="iconCls:'icon-accept'" onclick="lookDetails()">查看详情</div>
		<div data-options="iconCls:'icon-redo'" onclick="rejectRow()">撤销</div>
		<div data-options="iconCls:'icon-reload'" onclick="_datasDatagrid.datagrid('reload');">刷新</div>
	</div>
</div>

<!--BUG回复dialog-->
<div id="dialogTeacher" style="width:800px;height:500px;display:none;padding:10px;overflow-x:hidden;overflow-y:scroll">
	<form id="formTeacher" method="post" style="width:100%; height:100%;">
		<table>
			<tr >
				<th style="text-align:left;">名称</th>
				<td><input type="text" id="name_tea" name="name" style="width:100px;"/></td>
				<th>毕业院校</th>
				<td><input type="text" id="teacherCollage" name="teacherCollage" style="width: 100px;" /></td>
				<th>任教经验</th>
				<td><input type="text" id="teacherWorkYear" name="teacherWorkYear" style="width: 100px;"/></td>
			</tr>
			<tr>
			    <th>性别</th>
				<td><input type="text" id="teacherSex" name="teacherSex" style="width: 100px;"/></td>
				<th>拥有学历</th>
				<td><input type="text" id="teacherXueLi" name="teacherXueLi" style="width: 100px;"/></td>
				<th style="text-align:left;">资格证书</th>
				<td><input type="text" id="teacherNaetil" name="teacherNaetil" style="width:100px;" /></td>
				
			</tr>
				
			<tr>
				<th>年龄</th>
				<td><input type="text" id="teacherAge" name="teacherAge" style="width: 100px;" /></td>
				<th>擅长科目</th>
				<td><input type="text" id="teacherPro" name="teacherPro" style="width: 100px;"/></td>
				<th>累计课时</th>
				<td><input type="text" id="teacherWorkHourse" name="teacherWorkHourse" style="width: 100px;"/></td>
			</tr>
				
			<tr>
				<th>等级</th>
				<td><input type="text" id="status_tea" name="status" style="width: 100px;" /></td>
				<th>预约人数</th>
				<td><input type="text" id="teacherSubNum" name="teacherSubNum" style="width: 100px;"/></td>
				<th>是否私教</th>
				<td><input type="text" id="teacherPrivate" name="teacherPrivate" style="width: 100px;"></td>
			</tr>
			<tr>
				<th>邮箱</th>
				<td><input type="text" id="teacherEmail" name="teacherEmail" style="width: 100px;" /></td>
				<th>QQ</th>
				<td><input type="text" id="teacherQQ" name="teacherQQ" style="width: 100px;"/></td>
				<th>电话</th>
				<td><input type="text" id="teacherTel" name="teacherTel" style="width: 100px;"></td>
			</tr>
			<tr>
				<th><span>教师logo</span></th>
				<td>
				<img id="logoPic_tea"  src="${pageContext.request.contextPath}/resources/css/images/logo_px.png" style="width: 89px;margin-left: 18px;"/>
				
				</td>
				<th>授课地址</th>
				<td><input type="text" id="teacherAddress" name="teacherAddress" style="width: 100px;"/></td>
				<th>教师星级评分</th>
				<td><input type="text" id="teacherScore" name="teacherScore" style="width: 100px;"/></td>
				
			</tr>
	
			<tr>
				<th>描述</th>
				<td colspan="5"><textarea id="teacherDetail" name="teacherDetail" style="width: 150px;"></textarea></td>
			</tr>
		</table>
	</form>
</div>

<!-- 添加机构dialog -->
<div id="dialogAddRow" style="width:800px;height:450px;padding:10px;display:none;ooverflow-x:hidden;overflow-y:scroll">
	<form id="formAddRow" method="post">
		<table class="dialogTable">
			<tr>
				<th style="text-align: right;">名称</th>
				<td><input type="text" id="text" name="text" style="width: 300px"/></td>
				<th style="text-align: right;">状态</th>
				<td><input type="text" id="status_train" name="status"/></td>
			</tr>
			<tr>
				<th style="text-align: right;">详细地址</th>
				<td><input type="text" id="address" name="address" style="width: 300px"/></td>			
				<th style="text-align: right;">行政区域</th>
				<td><input type="text" id="cid" name="cid"/></td>			
			</tr>
			<tr>
				<th style="text-align: right;">学员数量</th>
				<td><input type="text" id="studentsNum" name="studentsNum" style="width: 150px;"/></td>
				<th style="text-align: right;">预约数量</th>
				<td><input type="text" id="subscribeNum" name="subscribeNum" style="width: 150px;"/></td>
			</tr>
			<tr>
				<th style="text-align: right;">点赞数量</th>
				<td><input type="text" id="praiseNum" name="praiseNum" style="width: 150px;"/></td>
				<th style="text-align: right;">评分星级</th>
				<td><input type="text" id="score" name="score" style="width: 150px;"/></td>
			</tr>
			<tr>
				<th style="text-align: right;">LOGO</th>
				<td>
					<img id="logoPic_train" src="${pageContext.request.contextPath}/resources/css/images/logo_px.png" style="width: 89px;margin-left: 18px;"/>
				</td>
				<th style="text-align: right;">教学范围</th>
				<td><input type="text" id="teachingScope" name="teachingScope" style="width: 150px;"/></td>
			</tr>
			<tr>
				<th>学校详情</th>
				<td colspan="3"><textarea id="note" name="note"></textarea></td>
			</tr>
		</table>
	</form>
</div>



<!--BUG回复dialog-->
<div id="dialogChilderen" style="width:800px;height:500px;display:none;padding:10px;overflow-x:hidden;overflow-y:scroll">
	<form id="formChilderen" method="post" style="width:100%; height:100%;">
		<table>
			<tr >
				<th >名称：</th>
				<td><input type="text" id="name_child" name="name" style="width:100px;"/></td>
				<th>昵称：</th>
				<td><input type="text" id="childrenNickName" name="childrenNickName" style="width: 100px;" /></td>
				<th>擅长：</th>
				<td><input type="text" id="childrenStarPro" name="childrenStarPro" style="width: 200px;"/></td>
			</tr>
			<tr>
			    <th>性别：</th>
				<td><input type="text" id="childrenStarSex" name="childrenStarSex" style="width: 100px;"/></td>
				<th>年龄：</th>
				<td><input type="text" id="childrenStarAge" name="childrenStarAge" style="width: 100px;"/></td>
				<th style="text-align:left;">宝贝理想</th>
				<td><input type="text" id="childrenStarDream" name="childrenStarDream" style="width:200px;" /></td>
				
			</tr>
				
			<tr>
				<th>logo：</th>
				<td>
				<img id="logoPic_child" src="${pageContext.request.contextPath}/resources/css/images/logo_px.png" style="width: 89px;margin-left: 18px;"/>
				</td>
				<th>曾培训于：</th>
				<td><input type="text" id="childrenStarTrain" name="childrenStarTrain" style="width: 200px;"/></td>
				
			</tr>
	
			<tr>
				<th>家長心得：</th>
				<td colspan="5"><textarea id="childrenStarIdea" name="childrenStarIdea" cols="200" rows="5"></textarea></td>
			</tr>
		</table>
	</form>
</div>

</body>  
</html>